package com.example.myFirstWebmagic.dailyAirReport.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;

import com.example.myFirstWebmagic.util.JsonObject;


/**
 * 
 * ClassName: DailyAirQualityReport 
 * @Description: 空气质量日报实体类
 * @author xiongyao
 * @date 2017年2月28日
 */
@Entity
public class EnDailyAirQualityReport extends JsonObject implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	/**
	 * 联合主键
	 */
	@EmbeddedId
	private AirQualityReportPK id;
	

	/**
	 * 空气质量指数
	 */
	@Column(nullable = false)
	private String aqi;
	
	/**
	 * 空气级别
	 */
	@Column(nullable = false)
	private String airLevel;
	
	/**
	 * 污染物
	 */
	@Column(nullable = true)
	private String populate;

	protected EnDailyAirQualityReport() {
		
	}
	
	public EnDailyAirQualityReport(AirQualityReportPK id, String aqi,
			String airLevel, String populate) {
		super();
		this.id=id;
		this.aqi = aqi;
		this.airLevel = airLevel;
		this.populate = populate;
	}

	public AirQualityReportPK getId() {
		return id;
	}

	public void setId(AirQualityReportPK id) {
		this.id = id;
	}


}
